
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.IO;
using Microsoft.WindowsMobile.PocketOutlook;
/** 
COPYRIGHT (C) 2008 Piyusha Desai. All Rights Reserved.
* Read Licence.txt before using this application.
*/
namespace SmsBuddy
{
    public class AdminFacility
    {
    
        /// finds all of the storage cards on the device
       
        private static List<string> FindStorageCards()
        {
            List<string> cardList = new List<string>();

            // storage cards are mounted at root
            DirectoryInfo rootDir = new DirectoryInfo(@"\");

            // search for storage cards.  they will have the Temporary attribute set
            foreach (DirectoryInfo dirInfo in rootDir.GetDirectories())
            {
                if ((dirInfo.Attributes & FileAttributes.Temporary) == FileAttributes.Temporary)
                {
                    cardList.Add(dirInfo.FullName);
                }
            }

            return cardList;
        }
                   

    }
}
